import {EntityId, PageQueryParams, KfTreeNode} from "kf-web-library";


export interface Menu_TreeNode extends Omit<Menu, "name">, KfTreeNode {
  id: EntityId;
  children?: Menu_TreeNode[];
  parentsId?: string[];
  parentsName?: string[];
}

export interface Menu {
  id: EntityId;
  parentId?: number;
  code: string;
  name: string;
  path: string;
  icon?: string;
  type: string;
  createTime?: string;
  modifyTime?: string;
  seq?: number;
}

export interface FrontMenu {
  authority: string[];
  code: string;
  icon: string;
  key: string;
  name: string;
  path: string;
  children?: FrontMenu[];
}
